<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
  <script>
    function Person(name, age) {
      this.name = name
      this.age = age
    }

    function Student(name, age) {
      // Person.call(this, name, age)
      const _this = Reflect.construct(Person, [name, age], Student)
      return _this
    }

    // const stu = new Student("why", 18)
    const stu = new Student("why", 18)
    console.log(stu)
    console.log(stu.__proto__ === Student.prototype)

  </script>

</body>
</html>